package com.loren.demo08.example03;

import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.Objects;

@Component
public class AliyunSmsSender implements SmsSender {

    @Override
    public void send(Map<String, Object> request) {
        System.out.println("aliyun, request = " + request);
    }

    @Override
    public boolean supports(@NonNull String value) {
        return Objects.equals(value, "aliyun");
    }
}
